package com.LittleHan.crm.workbench.service;

import com.LittleHan.crm.exception.ActivityCreateException;
import com.LittleHan.crm.exception.ActivityDeleteException;
import com.LittleHan.crm.exception.ActivityRemarkException;
import com.LittleHan.crm.exception.ActivityUpdateException;
import com.LittleHan.crm.vo.PaginationVo;
import com.LittleHan.crm.workbench.entity.Activity;
import com.LittleHan.crm.workbench.entity.ActivityRemark;

import java.util.List;
import java.util.Map;

public interface ActivityService {
    public int activityNewPreserve(Activity activity) throws ActivityCreateException;
    public PaginationVo getTotalAndList(int pageNo, int pageSize, String searchName, String searchOwner, String searchStartDate, String searchEndDate);
    public int activityDelete(String []id) throws ActivityDeleteException;
    public Map<String,Object> activityUpdate(String id);
    public int activityUpdatePoint(Activity activity) throws ActivityUpdateException;
    public Map<String,Object> getDetailInfList(String id);
    public List<ActivityRemark> activityListRemark(String id);
    public int remarkDelete(String id) throws ActivityRemarkException;
    public int remarkAdd(ActivityRemark activityRemark);
    public int remarkUpdate(ActivityRemark activityRemark);
}
